package com.sh.business.domain.bo;

import com.sh.business.domain.PriceTrends;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 价格趋势业务对象 bms_price_trends
 *
 * @author ruoyi
 * @date 2025-02-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PriceTrends.class, reverseConvertGenerate = false)
public class PriceTrendsBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型(1:scroll 2:sznp)
     */
    @NotNull(message = "类型(1:scroll 2:sznp)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 实时时间
     */
    @NotNull(message = "实时时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date realTime;


}
